<?php
include_once('common/header.php');
if($AppUI->id <= 0 || (isset($_SESSION['product']) && (($_SESSION['product']&1<<2) == 0))) {
	$this->_redirect(HOST_BACKEND);
}
$intId			= $objRequest->getParam('id',0);
$objManufactory	= new Manufactory();
$objCommon 		= new PhungTK_Common();
$arrInfo		= $objManufactory->get($intId);
$strCountry		= isset($_SESSION['manupost']['pcountry']) ? $_SESSION['manupost']['pcountry'] : $arrInfo['country'];
$intProvince	= isset($_SESSION['manupost']['pprovince']) ? $_SESSION['manupost']['pprovince'] : $arrInfo['province'];
$this->view->arrCountry		= $objCommon->getCountry();
$this->view->arrProvince	= $objCommon->getProvince($strCountry);
$this->view->arrDistrict	= $objCommon->getDistrict($intProvince);
$this->view->strCountry		= $strCountry;
$this->view->intProvince	= $intProvince;
$this->view->row			= $arrInfo;
$this->view->refer			= isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : (HOST_BACKEND . 'product/manufactory');
?>